Skip to content

feat: use CoinSelection class from coinlib for coin selection #1316

Draft
Cyrix126 wants to merge 2 commits intocypherstack:stagingfrom
Cyrix126:cl_coinselect
Draft

feat: use CoinSelection class from coinlib for coin selection #1316
Cyrix126 wants to merge 2 commits intocypherstack:stagingfrom
Cyrix126:cl_coinselect

Conversation

@Cyrix126
Copy link
Copy Markdown
Contributor

@Cyrix126 Cyrix126 commented May 2, 2026

Uses coinlib lib to make the coin selection instead of the current FIFO implemented, except for cases that are not supported (mweb inputs, override of fee).

The pubsec.yaml template is modified to fetch the coinlib repository to my fork that now includes an implementation in dart of the BnB algo directly in coinlib.

The buildTransaction standard input to coinlib input logic has been abstracted to a new function since the coinlib coin selection function also need coinlib inputs.

Cyrix126 and others added 2 commits May 2, 2026 04:51
Replace the legacy FIFO algorithm used so far, except for cases that
can not be treated by new coin selection algorithms (mweb input, override fee, send all, coin control)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant